package clustering;

public class SubscriberCompactRecord {
	String from_time;
	String to_time;
	String subscriber_id;
	int nbr_calls_qrt1;
	double avg_call_duration_qrt1;

	int nbr_calls_qrt2;
	double avg_call_duration_qrt2;
	int nbr_calls_qrt3;
	double avg_call_duration_qrt3;
	int nbr_calls_qrt4;
	double avg_call_duration_qrt4;
	int nbr_calls_qrt1_weekend;
	double avg_call_duration_qrt1_weekend;
	int nbr_calls_qrt_weekend2;
	double avg_call_duration_qrt2_weekend;
	int nbr_calls_qrt3_weekend;
	double avg_call_duration_qrt3_weekend;
	int nbr_calls_qrt4_weekend;
	double avg_call_duration_qrt4_weekend;

	public int totalNumberOfCalls() {
		return nbr_calls_qrt1 + nbr_calls_qrt2 + nbr_calls_qrt3
				+ nbr_calls_qrt4;
	}

	public String toString() {
		return String.format("[%s] %d %.2f %d %.2f %d %.2f %d %.2f",
				subscriber_id, nbr_calls_qrt1, avg_call_duration_qrt1,
				nbr_calls_qrt2, avg_call_duration_qrt2, nbr_calls_qrt3,
				avg_call_duration_qrt3, nbr_calls_qrt4, avg_call_duration_qrt4);
	}

	public String getSubscriber_id() {
		return subscriber_id;
	}

	public int getNbr_calls_qrt1() {
		return nbr_calls_qrt1;
	}

	public double getAvg_call_duration_qrt1() {
		return avg_call_duration_qrt1;
	}

	public int getNbr_calls_qrt2() {
		return nbr_calls_qrt2;
	}

	public double getAvg_call_duration_qrt2() {
		return avg_call_duration_qrt2;
	}

	public int getNbr_calls_qrt3() {
		return nbr_calls_qrt3;
	}

	public double getAvg_call_duration_qrt3() {
		return avg_call_duration_qrt3;
	}

	public int getNbr_calls_qrt4() {
		return nbr_calls_qrt4;
	}

	public double getAvg_call_duration_qrt4() {
		return avg_call_duration_qrt4;
	}

	public int getNbr_calls_qrt1_weekend() {
		return nbr_calls_qrt1_weekend;
	}

	public double getAvg_call_duration_qrt1_weekend() {
		return avg_call_duration_qrt1_weekend;
	}

	public int getNbr_calls_qrt_weekend2() {
		return nbr_calls_qrt_weekend2;
	}

	public double getAvg_call_duration_qrt2_weekend() {
		return avg_call_duration_qrt2_weekend;
	}

	public int getNbr_calls_qrt3_weekend() {
		return nbr_calls_qrt3_weekend;
	}

	public double getAvg_call_duration_qrt3_weekend() {
		return avg_call_duration_qrt3_weekend;
	}

	public int getNbr_calls_qrt4_weekend() {
		return nbr_calls_qrt4_weekend;
	}

	public double getAvg_call_duration_qrt4_weekend() {
		return avg_call_duration_qrt4_weekend;
	}

}
